$(function(){
			var userid=window.localStorage.getItem("userid");
			//点击列表样式
			$(".lista").click(function(){
				$('.lista').each(function() {
				    $('.lista').css("color","#cccccf");
				});
				$(this).css("color","white");
				let text=$(this).text();
				if(text==="收到的赞"){
					$("#tilie").text("收到的赞");
					
					$("#content").attr("src","information.html");
				}else if(text==="我的消息"){
					$("#tilie").text("我的消息");
					$("#content").attr("src","chat.html");
				}else if(text==="回复我的"){
					$("#tilie").text("回复我的");
					
					$("#content").attr("src","recover.html");
				}else if(text==="@我的"){
					$("#tilie").text("@我的");
					getInform(userid,3)
					$("#content").attr("src","referto.html");
				}else if(text==="系统通知"){
					$("#tilie").text("系统通知");
					$("#content").attr("src","notification.html");
				}else if(text==="返回首页"){
					location.href="../index.html";
				}
			})
			
			function getInform(uid,informType){
				axios.get(API+'getInform?uid='+uid+"&informType="+informType).then(response => {
					console.log(response.data)
					localStorage.setItem("informList", JSON.stringify(response.data))
				}).catch(error => {
					console.error(error);
				});
			}
		})